package net.factoryOpen.quickfactory;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.client.RestTemplate;

/**
 * 启动程序
 *
 * @author factoryOpen
 */
@EnableAsync
@MapperScan("com.ruoyi.**.mapper")
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class},scanBasePackages = {"net.factoryOpen.quickfactory","net.factoryOpen.core","com.ruoyi","org.jeecg.modules.jmreport"})
public class QuickFactoryApplication {
    public static void main(String[] args) {
        SpringApplication.run(QuickFactoryApplication.class, args);
        System.out.println("quickFactory启动成功\n\n");
    }
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}